print('程序制作者:@Sanxiaozhan869')
print('频道:@GTTT8888')

#禁止用此脚本参与违法行为.

import requests
import time

API_URL = "http://www.1n.cn/mobile.php/subscriber/isidcard"


idcard = input('身份证:')
name = input('姓名:')

params = {
    'idcard': idcard,
    'name': name
}

time.sleep(0.5)

try:
    response = requests.get(API_URL, params=params)
    
    if response.status_code == 200:
        if 'application/json' in response.headers.get('Content-Type', ''):
            data = response.json()
            status_code = data.get('status')
            if status_code == 1:
                print("二要素正确")
            elif status_code == -1:
                print("二要素错误")
            else:
                print("未知状态码:", status_code)
    else:
        print("请求失败，状态码:", response.status_code)

except requests.RequestException as e:
    print("请求时发生异常:", str(e))

